<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../font-awesome-4.7.0/css/font-awesome.min.css">
    <style>
        body{
            padding: 0;
        }
        .left{
            float: left;
        }
        .right{
            float: right;
        }
        .pg-header{
            background-color: #2459a2;
            position: fixed;
            height: 44px;
            width: 100%;
            line-height: 44px;
            top:0;
            left: 0;
            line-height: 44px;
        }
        .pg-header .pg-logo{
            color: aquamarine;

        }

        .pg-header .pg-user{
            width: 160px;
            height: 44px;
        }
        .pg-header .pg-user:hover{
            background-color: darkblue;
        }
        .pg-header .pg-user .pg-user-headimage{
            width: 44px;
            height: 44px;
            right: 20px;
        }
        .pg-header .pg-user .pg-user-headimage img{
            width: 44px;
            height: 44px;
            border-radius: 50px;
        }
        .pg-header .pg-icon{
            /*padding-right: 40px;*/
            padding:0 20px;
            width: 40px;
            text-align: center;
        }
        .pg-header .pg-icon:hover{
            background-color: darkblue;
        }
        .pg-header .pg-icon .message{
            background-color: red;
            color: white;
            display: inline-block;
            padding: 1px 0;
            line-height: 1;     /* 由于上层div有line-height，这里设置line-height=1，让他占用本身的大小*/
            margin-top: 15px;
            border-radius: 50%;
        }
    </style>
</head>
<body>
<!--图标插件-->
<!--http://fontawesome.io/icons/-->


<div class="pg-header">
    <div class="pg-logo left">
        logo
    </div>
    <div class="pg-user right">
        <div class="pg-user-headimage">
            <a href="#">
                <img src="../image/1.jpg">
            </a>
        </div>
    </div>
    <div class="pg-icon right" >
        <i class="fa fa-bell-o" aria-hidden="true"></i>
    </div>
    <div class="pg-icon right">
        <i class="fa fa-commenting-o" aria-hidden="true"></i>
        <span class="message right">20</span>
    </div>
</div>

</body>
</html>